package com.dkm.ec.sale.persistence.entity;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.ec.product.persistence.entity.ProductEntityTbl;

/**
 * 对象功能:销售产品实体 Tbl对象
 * 开发公司:SKG.COM
 * 开发人员:Yuki
 * 创建时间:2015-01-16 17:46:07
 */
 @ITable(name="saleEntity",code="skg_sale_entity")
public class SaleEntityTbl extends ProductEntityTbl{
	@IField(name="saleId",column="sale_id_")
	protected String  saleId; 		/*销售产品 ID*/
	@IField(name="seType",column="se_type_")
	protected String  seType; 		/*产品形态。entity=实体产品；package=产品包；software=软体产品；service=服务*/
	@IField(name="seStatus",column="se_status_")
	protected String  seStatus; 		/*产品状态。draft=草稿；on_sale=上架；not_on_sell=下架；forbidden=禁售。*/
	@IField(name="salesType",column="sales_type_")
	protected String  salesType; 		/*类型。stock=按库存销售；pre_order=预售；stock_and_back=按库存并缺货销售；always=永远可售；group=团购*/
	@IField(name="onSaleBegin",column="on_sale_begin_")
	protected java.util.Date  onSaleBegin; 		/*上架起始时间*/
	@IField(name="onSaleEnd",column="on_sale_end_")
	protected java.util.Date  onSaleEnd; 		/*上架结束时间*/
	@IField(name="pointType",column="point_type_")
	protected String  pointType; 		/*积分计算方式。cal=金额 * 系统配置，向上取整。setting=人工设置。*/
	@IField(name="seCreateTime",column="se_create_time_")
	protected java.util.Date  seCreateTime; 		/*创建时间*/
	@IField(name="seUpdateTime",column="se_update_time_")
	protected java.util.Date  seUpdateTime; 		/*更新时间*/
	@IField(name="searchWord",column="searchWord_")
	protected String searchWord;//搜索关键词
	@IField(name="isSearch",column="is_search_")
	protected String isSearch;//是否搜索
	@IField(name="pointProportion",column="point_proportion_")
	protected Double pointProportion;//是否搜索
	
	
	public Double getPointProportion() {
		return pointProportion;
	}
	public void setPointProportion(Double pointProportion) {
		this.pointProportion = pointProportion;
	}
	@Override
	public void setId(String saleId) {
		this.saleId = saleId;
	}
	@Override
	public String getId() {
		return saleId;
	}	
	public void setSaleId(String saleId) 
	{
		this.saleId = saleId;
	}
	/**
	 * 返回 销售产品 ID
	 * @return
	 */
	public String getSaleId() 
	{
		return this.saleId;
	}
	public void setSeType(String seType) 
	{
		this.seType = seType;
	}
	/**
	 * 返回 产品形态。entity=实体产品；mix=产品包；software=软体产品；service=服务
	 * @return
	 */
	public String getSeType() 
	{
		return this.seType;
	}
	public void setSeStatus(String seStatus) 
	{
		this.seStatus = seStatus;
	}
	/**
	 * 返回 产品状态。draft=草稿；on_sale=上架；not_on_sell=下架；forbidden=禁售。
	 * @return
	 */
	public String getSeStatus() 
	{
		return this.seStatus;
	}
	public void setSalesType(String salesType) 
	{
		this.salesType = salesType;
	}
	/**
	 * 返回 类型。stock=按库存销售；pre_order=预售；stock_and_back=按库存并缺货销售；always=永远可售；group=团购
	 * @return
	 */
	public String getSalesType() 
	{
		return this.salesType;
	}
	public void setOnSaleBegin(java.util.Date onSaleBegin) 
	{
		this.onSaleBegin = onSaleBegin;
	}
	/**
	 * 返回 上架起始时间
	 * @return
	 */
	public java.util.Date getOnSaleBegin() 
	{
		return this.onSaleBegin;
	}
	public void setOnSaleEnd(java.util.Date onSaleEnd) 
	{
		this.onSaleEnd = onSaleEnd;
	}
	/**
	 * 返回 上架结束时间
	 * @return
	 */
	public java.util.Date getOnSaleEnd() 
	{
		return this.onSaleEnd;
	}
	public void setPointType(String pointType) 
	{
		this.pointType = pointType;
	}
	/**
	 * 返回 积分计算方式。cal=金额 * 系统配置，向上取整。setting=人工设置。
	 * @return
	 */
	public String getPointType() 
	{
		return this.pointType;
	}
	public void setSeCreateTime(java.util.Date seCreateTime) 
	{
		this.seCreateTime = seCreateTime;
	}
	/**
	 * 返回 创建时间
	 * @return
	 */
	public java.util.Date getSeCreateTime() 
	{
		return this.seCreateTime;
	}
	public void setSeUpdateTime(java.util.Date seUpdateTime) 
	{
		this.seUpdateTime = seUpdateTime;
	}
	/**
	 * 返回 更新时间
	 * @return
	 */
	public java.util.Date getSeUpdateTime() 
	{
		return this.seUpdateTime;
	}
	
	public String getSearchWord() {
		return searchWord;
	}
	public void setSearchWord(String searchWord) {
		this.searchWord = searchWord;
	}
	
	public String getIsSearch() {
		return isSearch;
	}
	public void setIsSearch(String isSearch) {
		this.isSearch = isSearch;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("saleId", this.saleId) 
		.append("seType", this.seType) 
		.append("seStatus", this.seStatus) 
		.append("salesType", this.salesType) 
		.append("onSaleBegin", this.onSaleBegin) 
		.append("onSaleEnd", this.onSaleEnd) 
		.append("pointType", this.pointType) 
		.append("seCreateTime", this.seCreateTime) 
		.append("seUpdateTime", this.seUpdateTime) 
		.append("isSearch", this.isSearch)
		.toString();
	}
}